package com.sluggard.mp.model.constants;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 自动装配常量
 *
 * @author lizheng
 * @since 2024.4.17
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class MybatisPlusConfigConstants {

    /**
     * 自动装配日志前缀
     */
    public static final String LOG_PREFIX = "[ 自动装配 ] ";

    /**
     * 自动装配开关
     */
    public static final String CONFIG_PREFIX = "sluggard.mp";

    /**
     * Properties配置类前缀
     */
    public static final String MYBATIS_PLUS_PROPERTIES = CONFIG_PREFIX + ".config";


    public static final String ENABLE = CONFIG_PREFIX + ".enable";
    public static final String MYBATIS_PLUS_INTERCEPTOR_PROPERTIES =
            MYBATIS_PLUS_PROPERTIES + ".enable-field-convert-interceptor";
    public static final String LOADING_TRANSACTION_AUTO_CONFIGURE = LOG_PREFIX + "加载MP事务配置";
    public static final String LOADING_MYBATIS_PLUS_AUTO_CONFIGURE = LOG_PREFIX + "加载MP配置";
    public static final String LOADING_MYBATIS_PLUS_PAGE_PLUGIN = LOG_PREFIX + "加载MP分页插件";
    public static final String LOADING_MYBATIS_PLUS_LOCK_PLUGIN = LOG_PREFIX + "加载MP乐观锁插件";
    public static final String LOADING_MYBATIS_PLUS_ATTACK_PLUGIN = LOG_PREFIX + "加载MP防全表更新和删除插件";
    public static final String LOADING_MYBATIS_PLUS_INTERCEPTOR_PLUGIN_WARING = LOG_PREFIX + "加载MP字段转换拦截器实现类失败";
    public static final String LOADING_MYBATIS_PLUS_MAPPERS = LOG_PREFIX + "加载MP Mappers: {}";
}
